using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

using MWC.DL;

namespace MWC.BL
{
    public class SpeechMobile: NetcampWebProxy.Speech, Contracts.IBusinessEntity
    {
        public int ID { get; set; }

        public SpeechMobile() { }
        
        public SpeechMobile(NetcampWebProxy.Speech b)
        {
            this.Bio                            = b.Bio;
            this.Description                    = b.Description;
            this.LinkToSpeakerImg               = b.LinkToSpeakerImg;
            this.NameSurname                    = b.NameSurname;
            this.PresentationID                 = b.PresentationID;
            this.PresentationSourceCategory     = b.PresentationSourceCategory;
            this.PubDate                        = b.PubDate;
            this.Title                          = b.Title;
            this.VideoID                        = b.VideoID;
            this.VideoSourceCategory            = b.VideoSourceCategory;
        }

        public string Index
        {
            get
            {
                return NameSurname == null ? "A" : NameSurname[0].ToString().ToUpper();
            }
        }
    }
}